package com.hist.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hist.dao.TeacherDao;
import com.hist.service.TeacherService;
import com.hist.entity.AllScore;
import com.hist.entity.Percent;
import com.hist.entity.Student;

@Service
public class TeacherServiceImpl implements TeacherService{
  
	   @Autowired 
	   TeacherDao dao;
	   
	   public List<Percent> getPercent(String smajor,Integer sgrade)
	   {
		   return dao.getpercent(smajor,sgrade);
	   }

	@Override
	public List<AllScore> allScore() {
		// TODO Auto-generated method stub
		return dao.allScore();
	}

	@Override
	public List<AllScore> majorScore(String smajor, Integer sgrade) {
		// TODO Auto-generated method stub
		return dao.majorScore(smajor,sgrade);
	}

	@Override
	public void insertScore(Integer sno,Integer cno, Double score) {
		// TODO Auto-generated method stub
		   dao.insertScore(sno,cno,score);
	}
	   
	
	   
}
